package com.letian.im.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.letian.common.annotation.Excel;
import com.letian.common.core.domain.BaseEntity;

/**
 * 聊天信息对象 im_chat_msg
 * 
 * @author bmz
 * @date 2023-08-13
 */
public class ImChatMsg extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 聊天信息ID */
    private Long id;

    /** 发送用户ID */
    @Excel(name = "发送用户ID")
    private Long sendUserId;

    /** 接受用户ID */
    @Excel(name = "接受用户ID")
    private Long acceptUserId;

    /** 聊天信息 */
    @Excel(name = "聊天信息")
    private String msg;

    /** 消息是否签收状态
        1：签收
        0：未签收
         */
    @Excel(name = "消息是否签收状态")
    private Integer signFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setSendUserId(Long sendUserId) 
    {
        this.sendUserId = sendUserId;
    }

    public Long getSendUserId() 
    {
        return sendUserId;
    }
    public void setAcceptUserId(Long acceptUserId) 
    {
        this.acceptUserId = acceptUserId;
    }

    public Long getAcceptUserId() 
    {
        return acceptUserId;
    }
    public void setMsg(String msg) 
    {
        this.msg = msg;
    }

    public String getMsg() 
    {
        return msg;
    }
    public void setSignFlag(Integer signFlag) 
    {
        this.signFlag = signFlag;
    }

    public Integer getSignFlag() 
    {
        return signFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sendUserId", getSendUserId())
            .append("acceptUserId", getAcceptUserId())
            .append("msg", getMsg())
            .append("signFlag", getSignFlag())
            .append("createTime", getCreateTime())
            .toString();
    }
}
